package org.ala.distributed_database_transaction;

import org.ala.distributed_database_transaction.commons.AbstractDataBaseTransaction;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;


/**
 * 两阶段提交
 *
 * @author 骆毅(ala)
 * @date 2024年2月20日
 */
public class Transaction2PC extends AbstractDataBaseTransaction {

	
	public Transaction2PC(DataSourceTransactionManager dataSourceTransactionManager) {
		super(dataSourceTransactionManager);
	}


	/**
	 * can_commit -> pre_commit 无需等待
	 */
	@Override
	protected boolean isWaitCanCommitToPreCommit() {
		return false;
	}
}
